home *** CD-ROM | disk | FTP | other *** search
- Hello,
-
- Here's a little trick I found the other day, hope somebody can use it..
-
- To store an integer-array you would normaly open a sequentiel file and dump
- the data with a loop.. Well try this instead:
- MX=50
- Dim A(MX)
- -
- Bsave FILE$,Varptr(A(0)) To Varptr(A(0))+(MX+1)*4
-
- And to reload:
- Bload FILE$,Varptr(A(0))
-
- You can simply replace Bsave with Ssave if you'd like to have more than one
- Array in a file. Or use Copy to put in a bank :)
-
- --
- Kind regards from
- ______________________________________________________________________________
- /_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
- / / / /_/ / ____/ \ \___\ __ \ \ \ top_cat@post8.tele.dk
- /_/ /_____/_/ \_____\_\ \_\ \_\
- ------------------------------------------------------------------------------
- http://home8.inet.tele.dk/top_cat/
- -+- Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO -+-
- -+- SUPPORT - AMOS - AMIGA - AQUA -+-
- ------------------------------------------------------------------------------
- It is better to have tried and failed than to have failed to try, but the
- result's the same.
- -- Mike Dennison
- ------------------------------------------------------------------------------
-
-
-